import WXClient from './../wxs/';
const { DINTALK_API,__LOCAL__ } = require(`config/${ENV}.json`);
import { Control } from 'react-keeper'
import StorageUtils from "./storage";
if (__LOCAL__) {
    if (DINTALK_API) {
      init();
    } else {
      alert('Wechat jsApi 服务: 没有配置启用 (如何使用请查看文档) ')
    }
}
else
{
  // Control.go('/home/my', null);
}


async function init() {
  const ret = await new WXClient().wxConfig();
  if (!ret.success) {
    console.log(ret.message);
  } else {
  }
}


